// components/MV/MV.js
Component({
	/**
	 * 组件的属性列表
	 */
	properties: {
		newMVData:{
			type:Array,
			value:[]
		}
	},

	/**
	 * 组件的初始数据
	 */
	data: {
		show: false,
    actions: [
      {
        name: '内地',
      },
      {
        name: '港台',
      },
      {
        name: '欧美',
			},
			{
        name: '日本',
			},
			{
        name: '韩国',
      },
    ],
	},

	/**
	 * 组件的方法列表
	 */
	methods: {
		toPlay(event){
			let id = event.currentTarget.dataset.id
			wx.navigateTo({
				url: `/pages/mvPlay/mvPlay?id=${id}`,
			})
		},
		select(){
			this.setData({
				show:true
			})
		},
		onClose() {
			this.setData({ show: false });
		},
		
		onSelect(event) {
			console.log(event.detail.name);
			this.triggerEvent('select',event.detail.name)
		}
	}
})
